package com.infinit.easyreader.entity;

/**
 * 类：com.infinit.easyreader.entity.PreferenceSettings V[1.0.0]
 * 作用：设置项目
 * Created by rzy on 2016/7/5.
 */
public class PreferencesSettings {

    private String preferenceName = "appSettings";
    private int fontSize;
    private String fontFamily;
    private boolean isAutoRead;
    private int bgResID;
    private int brightness;
    private int lastBrightness;
    private boolean isAutoBrightness;

    public PreferencesSettings() {
    }

    public PreferencesSettings(int bgResID, int brightness, String fontFamily, int fontSize, boolean isAutoRead, String preferenceName) {

        this.bgResID = bgResID;
        this.brightness = brightness;
        this.fontFamily = fontFamily;
        this.fontSize = fontSize;
        this.isAutoRead = isAutoRead;
        this.preferenceName = preferenceName;
    }

    public boolean isAutoBrightness() {
        return isAutoBrightness;
    }

    public void setAutoBrightness(boolean autoBrightness) {
        isAutoBrightness = autoBrightness;
    }

    public int getLastBrightness() {
        return lastBrightness;
    }

    public void setLastBrightness(int lastBrightness) {
        this.lastBrightness = lastBrightness;
    }

    public int getBgResID() {
        return bgResID;
    }

    public void setBgResID(int bgResID) {
        this.bgResID = bgResID;
    }

    public int getBrightness() {
        return brightness;
    }

    public void setBrightness(int brightness) {
        this.brightness = brightness;
    }

    public String getFontFamily() {
        return fontFamily;
    }

    public void setFontFamily(String fontFamily) {
        this.fontFamily = fontFamily;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public boolean isAutoRead() {
        return isAutoRead;
    }

    public void setAutoRead(boolean autoRead) {
        isAutoRead = autoRead;
    }

    public String getPreferenceName() {
        return preferenceName;
    }

    public void setPreferenceName(String preferenceName) {
        this.preferenceName = preferenceName;
    }
}
